package com.my.swas.common.base;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description:
 * @author: :MaYong
 */
@Data
public abstract class BaseEntity extends Model  {

    @TableField(value = "created_time",fill = FieldFill.INSERT)
    private Date createdTime;

    @TableField(value = "last_modify_time",fill = FieldFill.INSERT_UPDATE)
    private Date lastModifyTime;

    private String remark;

    @TableField(fill = FieldFill.INSERT)
    private String creator;

    @TableField(value = "creator_id",fill = FieldFill.INSERT)
    private Long creatorId;

    @TableField(value = "last_modifier",fill = FieldFill.INSERT_UPDATE)
    private String lastModifier;

    @TableField(value = "last_modifier_id",fill = FieldFill.INSERT_UPDATE)
    private Long lastModifierId;

    private Integer status = 1;

    private Integer deleted = 1;


}